﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BUS;
using DTO;
using System.Collections.Generic;

public partial class admin_Partners : System.Web.UI.Page
{
    PartnerBUS partnerBUS = new PartnerBUS();
    List<PartnerDTO> partnerList = new List<PartnerDTO>();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["adminName"] == null)
            Response.Redirect("login.aspx?turn=partners.aspx");
        if (!IsPostBack)
            grvPartners.DataSource = partnerBUS.GetAllPartners();
    }
}
